
package com.yuhanginfo.modules.sys.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import com.yuhanginfo.common.service.CrudService;
import com.yuhanginfo.modules.sys.entity.InvoiceInfo;
import com.yuhanginfo.modules.sys.dao.InvoiceInfoDao;

/**
 * 订单详情Service
 * @author yangs
 * @version 2017-09-19
 */
@Service
@Transactional(readOnly = true)
public class InvoiceInfoService extends CrudService<InvoiceInfoDao, InvoiceInfo> {
    @Autowired
	private InvoiceInfoDao invoiceInfoDao;

	
	@Transactional(readOnly = false)
	public void save(InvoiceInfo invoiceInfo) {
		super.save(invoiceInfo);
	}
	
	@Transactional(readOnly = false)
	public void delete(InvoiceInfo invoiceInfo) {
		super.delete(invoiceInfo);
	}

	public InvoiceInfo selectByOrdersCode(String code) {
		
		return invoiceInfoDao.selectByOrdersCode(code);
	}
	
}